var data =[7, 5, 2, 8, 3]
    var option = {
        tooltip:{
		trigger:'axis',
		axisPointer:{
			type:'shadow'
		}
	},
        grid: {
            left: '3%',
            right: '4%',
            bottom: '3%',
            top: '8%',
            containLabel: true
        },
        xAxis : [
            {
                type : 'category',
                data : ['进场数量', '退场数量',  '在场数量','自由数量', '租赁数量'],
                axisTick: {
                    alignWithLabel: true
                },
                axisLabel:{
                    textStyle:{
                        color:'#ffffff',
                        fontSize:14
                    }
                },
                axisLine:{
                    show:false
                }

            }
        ],
        yAxis : [
            {
                type: 'value',
                show:false
            }
        ],
        series : [

            {
                name:'',
                type:'bar',
                barWidth: '20%',
                data:data,
                itemStyle:{
                    normal:{
                        color:function(params){
                            var colorList = ['#00afff','#bf2caf','#ffb01b','#5264ff','#13f2a3']
                            return colorList[params.dataIndex]
                        },
                        label : {
                            show: true,
                            position: 'top',
                            formatter: '{c}',
                            textStyle: {
                                color: 'auto',
                                fontSize: '14',
                                fontFamily: '微软雅黑',
                            }
                        }
                    }
                }

            },
        ]
    };
var chart = echarts.init(document.getElementById('company3-chart2'));
chart.setOption(option);
